<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tid" data-rule="required" class="form-control" name="row[tid]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" data-rule="required" class="form-control" name="row[number]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Called')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-called" data-rule="required" class="form-control selectpicker" name="row[called]">
                {foreach name="calledList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Calltime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-calltime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[calltime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Callgateway')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-callgateway" data-rule="required" class="form-control" name="row[callgateway]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Callstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="callstateList" item="vo"}
            <label for="row[callstate]-{$key}"><input id="row[callstate]-{$key}" name="row[callstate]" type="radio" value="{$key}" {in name="key" value="none"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Failreason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-failreason" data-rule="required" class="form-control" name="row[failreason]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ivrstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="ivrstateList" item="vo"}
            <label for="row[ivrstate]-{$key}"><input id="row[ivrstate]-{$key}" name="row[ivrstate]" type="radio" value="{$key}" {in name="key" value="none"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Queuestate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="queuestateList" item="vo"}
            <label for="row[queuestate]-{$key}"><input id="row[queuestate]-{$key}" name="row[queuestate]" type="radio" value="{$key}" {in name="key" value="queued"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receptionextension')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receptionextension" data-rule="required" class="form-control" name="row[receptionextension]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style='text-align: center;'>
                <button type="submit" class="btn btn-info btn-embossed disabled" style='margin-right: 10px;padding:3px 12px;'>{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed" style='padding:4px 12px;'>{:__('Reset')}</button>
            </div>
    </div>
</form>
